body {
    background-color: #f2f2f2;
}

.layui-form-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, .15);
    padding: 15px;
    z-index: 9999;
    margin-bottom: 0px;
    /* margin-top: 10px; */
    text-align: center;
}


/* .layui-fluid {
    margin-top: 15px;
} */

.design-box {
    padding-top: 15px;
    padding-bottom: 83px;
    padding-left: 15px;
}

.nav {
    text-align: center;
}

.nav button {
    margin-bottom: 3px;
    width: 80px;
}

.nav button.layui-btn {
    margin-left: 0;
}

.del-form {
    line-height: initial;
    position: absolute;
    right: 15px;
    top: 50%;
    margin-top: -15px;
}

.code-show {
    min-height: 454px;
}

.js-show {
    min-height: 200px;
}

.design-main {
    background: #fff;
    border: 1px dashed #999;
    min-height: 600px;
    margin: 10px 5px;
    padding: 10px;
}

#components .component {
    display: inline-block;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #666;
    margin-bottom: 10px;
    float: left;
    width: 60px;
    margin-right: 10px;
}

#components .component:nth-child(even) {
    margin-right: 0;
}

#components .component:hover {
    background-color: #2C65DE;
    color: #fff;
    border-color: #2C65DE;
}

#components .component-box {}

#components .component .iconfont {}

#components .component-name {}

#design-main .active {
    outline: 2px solid #2C65DE;
    border: 1px solid #2C65DE !important;
    outline-offset: 0;
}

.widget-view-action {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 28px;
    line-height: 28px;
    background: #2C65DE;
    z-index: 9;
}

.widget-view-action i {
    font-size: 14px;
    height: 28px;
    line-height: 28px;
    display: inline-block;
    color: #fff;
    margin: 0 5px;
    cursor: pointer;
}

.widget-view-drag {
    position: absolute;
    left: -2px;
    top: -2px;
    bottom: -18px;
    height: 28px;
    line-height: 28px;
    background: #2C65DE;
    z-index: 9;
}

.widget-view-drag i {
    font-size: 14px;
    color: #fff;
    margin: 0 5px;
    cursor: move;
}

#design-main .component {
    position: relative;
    border: 1px dashed #999;
    margin-bottom: 10px;
    background-color: #fff;
    /* cursor: pointer; */
}

#design-main .component .widget-view-action,
#design-main .component .widget-view-drag {
    display: none;
}

#design-main .component.active {
    border-color: #2C65DE;
}

#design-main .component.active .widget-view-action,
#design-main .component.active .widget-view-drag {
    display: block;
}

#design-main .component .component-cnt {
    min-height: 40px;
}

.component-grid {
    border: 1px dashed #999;
    min-height: 40px;
    margin: 20px;
}

.grid-item {
    border-right: 1px dashed #999;
    min-height: 40px;
}

.component-grid .grid-item:last-child {
    border-right: 0;
}

.design-box {
    position: fixed;
    padding: 0;
    width: 100%;
    height: calc(100% - 68px);
    /* background-color: red; */
}

.design-left {
    margin-top: 15px;
    float: left;
    height: calc(100% - 30px);
    width: 220px;
    margin-left: 15px;
    overflow-y: scroll;
    background-color: #fff;
}

.design-center {
    position: absolute;
    left: 250px;
    right: 480px;
    top: 15px;
    bottom: 15px;
    overflow-y: scroll;
}

.design-right {
    margin-top: 15px;
    float: right;
    height: 100%;
    width: 450px;
    margin-right: 15px;
    overflow-y: scroll;
}